package com.tiger.cloud.controller.test;

import com.tiger.cloud.common.mybatis.BaseController;
import com.tiger.cloud.filter.CurrentUserId;
import com.tiger.cloud.filter.IgnoreAuth;
import com.tiger.cloud.util.DateTimeUtil;
import com.tiger.cloud.util.Response;
import com.tiger.cloud.util.ResponseUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * test
 */
@Controller
@RequestMapping(value = "appController")
@Api(value = "跳转",tags = "跳转")
public class MyTestController extends BaseController {

    private String jumpUrl = "http://www.hg3535.com/";
    private String verifyUrl = "http://h5.sale.kuanter.com/index.html";

	@RequestMapping(value = "findUrl", method = RequestMethod.POST)
	@ResponseBody
    @IgnoreAuth
    @CrossOrigin
    @ApiOperation(value = "获取URL",notes = "获取URL")
	public Response find(){
        Map<String,String> result = new HashMap<>();
        result.put("jumpUrl",jumpUrl);
        result.put("verifyUrl",verifyUrl);
		return ResponseUtil.ok(result);
	}



}